< previous page page_282 next page >

Page 282
can set them up in design mode; this way, you don't have to do anything while the program is running. The styles of panels are summarized in Table 12.5. Each of these styles is also displayed in Figure 12.28.
Table 12.5 Panel Styles Available to Your Programs
SettingDescription
sbrTextDisplays text or a bitmap. The text displayed is contained in the Text property of the panel, whereas the bitmap is contained in the Picture property.
sbrCapsHandles the status of the Caps Lock key. This panel displays CAPS in bold letters when the key is on and displays the letters dimmed when the key is off.
sbrNumHandles the status of the Num Lock key. This panel displays NUM in bold letters when the key is on and displays the letters dimmed when the key is off.
sbrInsHandles the status of the Insert key. This panel displays INS in bold letters when the key is on and displays the letters dimmed when the key is off.
sbrScrlHandles the status of the Scroll Lock key. This panel displays SCRL in bold letters when the key is on and displays the letters dimmed when the key is off.
sbrTimeDisplays the current time.
sbrDateDisplays the current date

note.gif An eighth setting, sbrKana, is also associated with the Scroll Lock key. It displays KANA in bold letters when the key is on and displays dimmed letters when the key is off. The KANA indicator is a special setting for Japanese programs. square.gif

The AutoSize property of each panel has three settings that help determine the size of the panel. The default setting, NoAutoSize, sets the size of the panel to the dimension specified in the MinWidth property; this size does not change as other panels are added and removed. The sbrContents setting sets the size of the panel to fit the text that the panel contains, whether this is text you enter or the text used for the key status and date/time panels. The final setting, sbrSpring, allows panels to stretch to fit the width of the status bar. This setting prevents any empty space from being present in the bar.
note.gif No matter which setting you choose for the AutoSize property, a panel is not made smaller than the dimension set by the MinWidth property. square.gif

One final property of note is the Bevel property. As stated previously, this property determines whether and how the 3D effects of the panel are displayed. This property has three settings: sbrNoBevel, which produces a flat panel; sbrInset (the default), which produces a panel that

 
< previous page page_282 next page >